<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>运维管理系统</title>
  <link rel="stylesheet" href="../static/layui/css/layui.css">
    <link rel="stylesheet" href="../static/css/font.css">
{#    <link rel="stylesheet" href="../static/css/index.css">#}
    <link rel="stylesheet" href="../static/css/iconfont.css">
{#    分布式提交表单补充的：#}
    <link href="../static/step-lc/step.css" rel="stylesheet">
    <script type="text/javascript" src="../static/js/index.js"></script>

        <style>
            #FontScroll{
                width: 100%;
                height: 245px;
                overflow: hidden;
            }
            #FontScroll ul li{
                height: 32px;
                width: 100%;
                color: #ffffff;
                line-height: 32px;
                overflow: hidden;
                font-size: 14px;
            }
            #FontScroll ul li i{
                color: red;
            }
            .layui-table td, .layui-table th{
                min-width: auto !important;
            }
        </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header layui-bg-cyan">
    <div class="layui-logo" style="color: white;font-size: 23px;font-weight: bold">运维管理系统</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- 移动端显示 -->
      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
        <i class="layui-icon layui-icon-spread-left"></i>
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-md-inline-block">
        <a href="javascript:;">
          <img src="../static/images/用户.jpg" class="layui-nav-img">
          {{ username }}
        </a>
        <dl class="layui-nav-child">
          <dd><a href="{{ url_for('userinfo') }}">用户信息</a></dd>
          <dd><a href=""><i class="layui-icon layui-icon-set"></i>设置</a></dd>
            <dd><a href="{{ url_for('logout') }}"><i class="layui-icon layui-icon-logout"></i>退出</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black ">
    <div class="layui-side-scroll layui-bg-cyan">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree layui-bg-cyan" lay-filter="test">
        <li class="layui-nav-item">
          <a href="{{ url_for('ops') }}"><i class="layui-icon layui-icon-home"></i>&nbsp;&nbsp;首页</a>
        </li>
{#          <li class="layui-nav-item layui-nav-itemed">#}
        <li class="layui-nav-item">
          <a class="" href="{{ url_for('hard') }}"><i class="layui-icon layui-icon-template-1"></i>&nbsp;&nbsp;资产管理</a>
{#          <dl class="layui-nav-child">#}
{#            <dd><a href="{{ url_for('hard') }}">IDC</a></dd>#}
{#            <dd><a href="{{ url_for('error') }}">公有云</a></dd>#}
{#          </dl>#}
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;"><i class="layui-icon layui-icon-component"></i>&nbsp;&nbsp;K8S</a>
          <dl class="layui-nav-child">
            <dd><a href="{{ url_for('k8s') }}">资源管理</a></dd>
            <dd><a href="{{ url_for('new_deploy') }}">创建YAML</a></dd>
            <dd><a href="{{ url_for('deploy') }}">编辑YAML</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;"><i class="layui-icon layui-icon-templeate-1"></i>&nbsp;&nbsp;中间件</a>
            <dl class="layui-nav-child">
            <dd><a href="{{ url_for('find') }}">Redis</a></dd>
            <dd><a href="{{ url_for('mysqlmgr') }}">MySQL</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="{{ url_for('cicd') }}"><i class="layui-icon layui-icon-chart-screen"></i>&nbsp;&nbsp;CICD平台</a>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;"><i class="layui-icon layui-icon-file">
          </i>&nbsp;&nbsp;自动化运维</a>
            <dl class="layui-nav-child">
            <dd><a href="{{ url_for('webssh') }}">远程桌面</a></dd>
            <dd><a href="{{ url_for('cron') }}">定时任务</a></dd>
            <dd><a href="{{ url_for('document') }}">文件服务</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="{{ url_for('monitor') }}"><i class="layui-icon layui-icon-chart-screen"></i>&nbsp;&nbsp;监控平台</a>
        </li>
          <li class="layui-nav-item">
          <a href="{{ url_for('userlist') }}"><i class="layui-icon layui-icon-user"></i>&nbsp;&nbsp;用户管理</a>
        </li>
      </ul>
    </div>
  </div>

  <div class="layui-body" style="background: #eeeeee;height: 910px;">
    <!-- 内容主体区域 -->
    <div style="padding: 8px;" >{% block content %} {% endblock %}</div>
  </div>

  <div class="layui-footer">
    <!-- 底部固定区域 -->
    Author: lizhifa@163.cn
  </div>
</div>

<script src="../static/layui/layui.js"></script>
{% block js %} {% endblock %}
<script>
//JS
layui.use(['element', 'layer', 'util'], function(){
  var element = layui.element
  ,layer = layui.layer
  ,util = layui.util
  ,$ = layui.$;

  //头部事件
  util.event('lay-header-event', {
    //左侧菜单事件
    menuLeft: function(othis){
      layer.msg('展开左侧菜单的操作', {icon: 0});
    }
    ,menuRight: function(){
      layer.open({
        type: 1
        ,content: '<div style="padding: 8px;">处理右侧面板的操作</div>'
        ,area: ['260px', '100%']
        ,offset: 'rt' //右上角
        ,anim: 5
        ,shadeClose: true
      });
    }
  });

});
</script>
</body>
</html>
